<%@ Control Language="C#" Inherits="Owu.Modules.MerchantEMallOrderManagement.ViewMerchantEMallOrderManagement"
    CodeFile="ViewMerchantEMallOrderManagement.ascx.cs" AutoEventWireup="true" %>
<%@ Register TagPrefix="dnn" TagName="Audit" Src="~/controls/ModuleAuditControl.ascx" %>


<asp:HiddenField ID="EnabledHiddenField" runat="server" />

<asp:Panel ID="MangementContainerPanel" CssClass="MangementContainerDisabled" runat="server">
    <asp:Panel ID="MangementHeaderPanel" CssClass="MangementHeaderPanel" runat="server">
        Merchant EMall Order Management Header
    </asp:Panel>
    <asp:Panel ID="ManagementContentPanel" CssClass="ManagementContentPanel" runat="server">

        <script type="text/javascript">
            function ShowGeneral() {
                document.getElementById('dvOrder').style.display = 'block';
                document.getElementById('dvReceipt').style.display = 'none';
            }
            function ShowReceipt() {
                document.getElementById('dvReceipt').style.display = 'block';
                document.getElementById('dvOrder').style.display = 'none';
            }
        </script>

        <style type="text/css">
            td
            {
                vertical-align: top;
            }
            .Highlighted
            {
                font-weight: bold;
                color: #FF0000;
            }
            .SearchEMallOrderTable, .EMallOrdersTable, .EMallOrderSearchCriteriaTable
            {
                width: 100%;
            }
            .OrderQualifierTitle
            {
                width: 50%;
                background-color: #0000FF;
            }
            .EMallOrdersList
            {
                width: 200px;
            }
            .EMallOrder, .EMallOrderPayment, .EMallOrderBillingAndShipping
            {
                width: 500px;
            }
            .OrderColumnValue
            {
                font-weight: strong;
            }
        </style>
        <asp:UpdatePanel ID="SearchEMallOrdersUpdatePanel" UpdateMode="Conditional" runat="server">
            <ContentTemplate>
                <asp:HiddenField ID="OrderNumberHiddenField" runat="server" />
                <table id="EMallOrdersTable" class="EMallOrdersTable" cellspacing="0" cellpadding="0"
                    border="0" runat="server">
                    <tbody>
                        <tr>
                            <td class="EMallOrdersList">
                                <table class="normalwidth" cellspacing="-1" cellpadding="0" border="0">
                                    <thead>
                                        <tr>
                                            <td colspan="2">
                                                Orders List
                                            </td>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <asp:Repeater ID="EMallOrderRepeater" runat="server" OnItemCommand="EMallOrderRepeater_ItemCommand"
                                            OnItemDataBound="EMallOrderRepeater_ItemDataBound">
                                            <ItemTemplate>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="OrderDateLabel" CssClass="OrderDateLabel" runat="server" />
                                                    </td>
                                                    <td>
                                                        <asp:LinkButton ID="OrderNumberLinkButton" CssClass="OrderNumberLinkButton" runat="server" />
                                                    </td>
                                                </tr>
                                            </ItemTemplate>
                                            <AlternatingItemTemplate>
                                                <tr class="odd">
                                                    <td>
                                                        <asp:Label ID="OrderDateLabel" CssClass="OrderDateLabel" runat="server" />
                                                    </td>
                                                    <td>
                                                        <asp:LinkButton ID="OrderNumberLinkButton" CssClass="OrderNumberLinkButton" runat="server" />
                                                    </td>
                                                </tr>
                                            </AlternatingItemTemplate>
                                        </asp:Repeater>
                                    </tbody>
                                </table>
                            </td>
                            <td>
                                <p>
                                    View Info: <a href="javascript:void(0);" onclick="ShowGeneral()">General</a> <a href="javascript:void(0);"
                                        onclick="ShowReceipt()">Receipt</a></p>
                                <div id="dvOrder">
                                    <table class="normalwidth EMallOrder" cellspacing="2" cellpadding="0" border="0">
                                        <thead>
                                            <tr>
                                                <td colspan="2">
                                                    General Information
                                                </td>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr class="odd">
                                                <td class="OrderColumnName">
                                                    Order Number:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Literal ID="OrderNumberLiteral" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="OrderColumnName">
                                                    Order Date:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Literal ID="OrderDateLiteral" runat="server" />
                                                </td>
                                            </tr>
                                            <tr class="odd">
                                                <td class="OrderColumnName">
                                                    CustomerID:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Literal ID="CustomerIDLiteral" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="OrderColumnName">
                                                    LastIPAddress:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Label ID="LastIPAddressLabel" runat="server" />
                                                    <asp:Button ID="BlockIPAddressButton" Text="Block" runat="server" OnClick="BlockIPAddressButton_Click" />
                                                    <asp:Button ID="ClearIPAddressButton" Text="Clear" runat="server" OnClick="ClearIPAddressButton_Click" />
                                                </td>
                                            </tr>
                                            <tr class="odd">
                                                <td class="OrderColumnName">
                                                    AffiliateID:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Literal ID="AffiliateIDLiteral" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="OrderColumnName">
                                                    Email:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Literal ID="EmailLiteral" runat="server" />
                                                </td>
                                            </tr>
                                            <tr class="odd">
                                                <td class="OrderColumnName">
                                                    OrderTotal:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Literal ID="OrderTotalLiteral" runat="server" />
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <table class="normalwidth EMallOrderPayment" cellspacing="2" cellpadding="0" border="0">
                                        <thead>
                                            <tr>
                                                <td colspan="2">
                                                    Order Payment
                                                </td>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr class="odd">
                                                <td class="OrderColumnName">
                                                    PaymentMethod:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Literal ID="PaymentMethodLiteral" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="OrderColumnName">
                                                    TransactionType:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Literal ID="TransactionTypeLiteral" runat="server" />
                                                </td>
                                            </tr>
                                            <tr class="odd">
                                                <td class="OrderColumnName">
                                                    TransactionState:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Literal ID="TransactionStateLiteral" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="OrderColumnName">
                                                    AuthorizedOn:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Literal ID="AuthorizedOnLiteral" runat="server" />
                                                </td>
                                            </tr>
                                            <tr class="odd">
                                                <td class="OrderColumnName">
                                                    CapturedOn:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Literal ID="CapturedOnLiteral" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="OrderColumnName">
                                                    VoidedOn:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Literal ID="VoidedOnLiteral" runat="server" />
                                                </td>
                                            </tr>
                                            <tr class="odd">
                                                <td class="OrderColumnName">
                                                    RefundedOn:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Literal ID="RefundedOnLiteral" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="OrderColumnName">
                                                    FraudedOn:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Literal ID="FraudedOnLiteral" runat="server" />
                                                </td>
                                            </tr>
                                            <tr class="odd">
                                                <td class="OrderColumnName">
                                                    ReceiptEmailSentOn:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Literal ID="ReceiptEmailSentOnLiteral" runat="server" />
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <table class="normalwidth EMallOrderBillingAndShipping" cellspacing="2" cellpadding="0"
                                        border="0">
                                        <thead>
                                            <tr>
                                                <td colspan="2">
                                                    Billing And Shipping
                                                </td>
                                            </tr>
                                        </thead>
                                        <tbody id="ShippingInfoTBody" runat="server">
                                            <tr>
                                                <td class="OrderColumnName">
                                                    ReadyToShip:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Literal ID="ReadyToShipLiteral" runat="server" />
                                                    <asp:Button ID="MarkOrderAsReadyToShipButton" Text="Mark As Ready To Ship" runat="server"
                                                        OnClick="MarkOrderAsReadyToShipButton_Click" />
                                                    <asp:Button ID="ClearOrderAsReadyToShipButton" Text="Clear Ready To Ship" runat="server"
                                                        OnClick="ClearOrderAsReadyToShipButton_Click" />
                                                </td>
                                            </tr>
                                            <tr class="odd">
                                                <td class="OrderColumnName">
                                                    Carrier:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:TextBox ID="ShippingCarrierTextBox" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="OrderColumnName">
                                                    Tracking Number:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:TextBox ID="ShippingTrackingNumberBox" runat="server" />
                                                </td>
                                            </tr>
                                            <tr class="odd">
                                                <td class="OrderColumnName">
                                                    Shipped On:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:TextBox ID="ShippedOnTextBox" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="OrderColumnName">
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Button ID="MarkAsShippedButton" Text="Mark As Shipped" runat="server" OnClick="MarkAsShippedButton_Click" />
                                                </td>
                                            </tr>
                                            <tr class="odd">
                                                <td class="OrderColumnName">
                                                    OrderWeight:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Literal ID="OrderWeightLiteral" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="OrderColumnName">
                                                    ShippingMethod:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Literal ID="ShippingMethodLiteral" runat="server" />
                                                </td>
                                            </tr>
                                            <tr class="odd">
                                                <td class="OrderColumnName">
                                                    IsPrinted:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Literal ID="IsPrintedLiteral" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="OrderColumnName">
                                                    First Name:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Literal ID="FirstNameLiteral" runat="server" />
                                                </td>
                                            </tr>
                                            <tr class="odd">
                                                <td class="OrderColumnName">
                                                    Last Name:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Literal ID="LastNameLiteral" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="OrderColumnName">
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Button ID="MarkAsPrintedButton" Text="Mark As Printed" runat="server" OnClick="MarkAsPrintedButton_Click" />
                                                </td>
                                            </tr>
                                            <tr class="odd">
                                                <td class="OrderColumnName">
                                                    Billing:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Literal ID="BillingFirstNameLiteral" runat="server" />
                                                    <asp:Literal ID="BillingLastNameLiteral" runat="server" />
                                                    <br />
                                                    <asp:Literal ID="BillingAddress1Literal" runat="server" />
                                                    <br />
                                                    <asp:Literal ID="BillingCityLiteral" runat="server" />
                                                    <asp:Literal ID="BillingStateLiteral" runat="server" />
                                                    <asp:Literal ID="BillingZipLiteral" runat="server" />
                                                    <br />
                                                    <asp:Literal ID="BillingCountryLiteral" runat="server" />
                                                    <br />
                                                    <asp:Literal ID="BillingPhoneLiteral" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="OrderColumnName">
                                                    Shipping:
                                                </td>
                                                <td class="OrderColumnValue">
                                                    <asp:Literal ID="ShippingFirstNameLiteral" runat="server" />
                                                    <asp:Literal ID="ShippingLastNameLiteral" runat="server" />
                                                    <br />
                                                    <asp:Literal ID="ShippingAddress1Literal" runat="server" />
                                                    <br />
                                                    <asp:Literal ID="ShippingCityLiteral" runat="server" />
                                                    <asp:Literal ID="ShippingStateLiteral" runat="server" />
                                                    <asp:Literal ID="ShippingZipLiteral" runat="server" />
                                                    <br />
                                                    <asp:Literal ID="ShippingCountryLiteral" runat="server" />
                                                    <br />
                                                    <asp:Literal ID="ShippingPhoneLiteral" runat="server" />
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                                <div id="dvReceipt" style="display: none">
                                    <br />
                                    <h2>
                                        One World United E-Mall Receipt
                                    </h2>
                                    <table>
                                        <tr>
                                            <td>
                                                OrderNumber:
                                            </td>
                                            <td>
                                                <asp:Label ID="lblOrderNumber" runat="server"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                CustomerID:
                                            </td>
                                            <td>
                                                <asp:Label ID="lblCustomerID" runat="server"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Email:
                                            </td>
                                            <td>
                                                <asp:Label ID="lblEmail" runat="server"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Date of Purchase:
                                            </td>
                                            <td>
                                                <asp:Label ID="lblDateOfPurchase" runat="server"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Coupon Entered:
                                            </td>
                                            <td>
                                                <asp:Label ID="lblCoupon" runat="server"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Locale Setting:
                                            </td>
                                            <td>
                                                <asp:Label ID="lblLocale" runat="server"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Payment Method:
                                            </td>
                                            <td>
                                                <asp:Label ID="lblPaymentMethod" runat="server"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="height: 20px;" colspan="2">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                <table>
                                                    <tr>
                                                        <td>
                                                            <b>Acount</b>
                                                        </td>
                                                        <td>
                                                            <b>Billing Address</b>
                                                        </td>
                                                        <td>
                                                            <b>Shipping Address</b>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            Name:
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblBillinName" runat="server"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblShippingName" runat="server"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            Address:
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblBillingAddress" runat="server"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblShippingAddress" runat="server"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            City:
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblBillingCity" runat="server"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblShippingCity" runat="server"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            State/Province:
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblBillingState" runat="server"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblShippingState" runat="server"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            Zip:
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblBillingZip" runat="server"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblShippingZip" runat="server"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            Country:
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblBillingCountry" runat="server"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblShippingCountry" runat="server"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            Phone:
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblBillingPhone" runat="server"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblShippingPhone" runat="server"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="height: 20px;" colspan="3">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <b>Product</b>
                                                        </td>
                                                        <td>
                                                            <b>Quantity</b>
                                                        </td>
                                                        <td>
                                                            <b>Subtotal</b>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="3">
                                                            <hr />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <asp:Label ID="lblProductName" runat="server"></asp:Label>
                                                        </td>
                                                        <td>
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblSubtotal" runat="server"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="3">
                                                            <hr />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                        </td>
                                                        <td>
                                                            Subtotal:
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblSubTotal1" runat="server"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                        </td>
                                                        <td>
                                                            Shipping(Pickup):
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblShipping" runat="server"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                        </td>
                                                        <td>
                                                            Tax:
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblTax" runat="server"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                        </td>
                                                        <td>
                                                            Total:
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblTotal" runat="server"></asp:Label>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                    Thank you for your purchase.
                                    <br />
                                    <br />
                                    One World United E-Mall
                                    <br />
                                    <a href="http://www.oneworldemall.com/">http://www.oneworldemall.com/</a>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <br />
                <p>
                    Custom Report</p>
                <asp:Panel ID="pCustomReport" runat="server" Visible="true">
                    <asp:GridView ID="gvCustomReport" runat="server">
                    </asp:GridView>
                </asp:Panel>
            </ContentTemplate>
            </asp:UpdatePanel>
    </asp:Panel>
</asp:Panel>
